<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
class Content
{
    var $sTitle;        // Page title
    var $sInclude;      // Override include page
    var $aOptions;      // Content specific options (ie: toolbar)

    /*
        $nType:         0 = regular URL
                        1 = JavaScript
                        2 = Multi-value (combo box)
                        3 = Text Only
                        4 = Divider
                        5 = submit
                        
        
    */


    function AddOption($sName, $sCaption, $nType, $sAction, $sImage = NULL, $aVars = NULL, $bHighlight = NULL, $bDisabled = NULL)
    {
        $this->aOptions[$sName]["sCaption"] = $sCaption;
        $this->aOptions[$sName]["nType"] = $nType;
        $this->aOptions[$sName]["sAction"] = $sAction;
        
        if ($sImage)
        {
            $this->aOptions[$sName]["sImage"] = $sImage;
        }
        
        if (is_array($aVars))
        {
            $this->aOptions[$sName]["aVars"] = $aVars;
        }

        if ($bHighlight)
        {
            $this->aOptions[$sName]["bHighlight"] = true;
        }

        if ($bDisabled)
        {
            $this->aOptions[$sName]["bDisabled"] = true;
        }


    }
    
}
?>
